package com.google.gson;

import com.google.gson.internal.a;
import java.util.Collection;

final class c implements ExclusionStrategy {
    private final Collection a;

    c(Collection collection) {
        this.a = (Collection) a.a((Object) collection);
    }

    public boolean shouldSkipClass(Class cls) {
        for (ExclusionStrategy shouldSkipClass : this.a) {
            if (shouldSkipClass.shouldSkipClass(cls)) {
                return true;
            }
        }
        return false;
    }

    public boolean shouldSkipField(d dVar) {
        for (ExclusionStrategy shouldSkipField : this.a) {
            if (shouldSkipField.shouldSkipField(dVar)) {
                return true;
            }
        }
        return false;
    }
}
